<template>
   <table class="my-table">
      <thead>
       <slot name="title"></slot>
      </thead>
      <tbody>
       
         <tr v-for="item in goods" :key="item.id">
          <slot name="goods" :item='item'></slot>
        </tr>
      </tbody>
    </table> 
</template>
 
<script>
export default {
  
  components: {},
  props: {
    goods:{
      type: Array,
      required: true,
      default: () => []
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>